<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>add_dept.jsp</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="./css/style.css">


  </head>
  
  <body>
    <div id="blue_button"><div id="blue_button_word">&nbsp;部门管理</div></div>
    
  <div id="right_background">
  &nbsp;
  <form action="./dept/deptEdit2Action.action" method="post">
  <div id="new_dept">
  <font color="orange">${msg}</font> <br/> <br/>
  &nbsp; 部门编号  ：<input type="text"  name="cdept.deptno" readonly="readonly" value="${cd.deptno}"/>
  部门名称   :  <input type="text" name="cdept.dname" value="${cd.dname}"/>     <br/> <br/> <br/> 
 &nbsp; 联系电话    :     <input type="text" name="cdept.DPhone" value="${cd.DPhone}" /> 
  部门经理   :<s:if test="%{my==1}">
          <select name="manager" style="width: 150px; font-color:darkblue;"  >
          <option ></option>
          <s:iterator value="elist" var="list">
          <option value="<s:property value="#list.EName"/>" ><s:property value="#list.EName"/></option>
          </s:iterator>
          </select>
          </s:if>
          <s:else>
          <select name="manager" style="width: 150px; font-color:darkblue;"  >
          <option value="${cd.comEmp.EName}">${cd.comEmp.EName}</option>
          <s:iterator value="elist" var="list">
          <option value="<s:property value="#list.EName"/>" ><s:property value="#list.EName"/></option>
          </s:iterator>
          </select>
          </s:else>
             <br/> <br/> <br/>       
 &nbsp; 部门传真 :   <input type="text" name="cdept.DFax" value="${cd.DFax}" />    
   部门状态   :    <s:if test="%{mm==1}">
                      <select style="width: 150px; font-color:darkblue;" name="cdept.DStatus">
                     <option value="Y" checked="true">未删除 </option>
                     <option value="N">已删除</option>
                     </select>
                     </s:if>
                     <s:else>
                      <select style="width: 150px; font-color:darkblue;" name="cdept.DStatus">
                     <option value="N" >已删除 </option>
                     <option value="Y" checked="true">未删除</option>
                     </select>
                     </s:else> <br/> <br/> <br/>
  部门描述   :   <textarea name="cdept.DDescribe" cols="48" rows="5">${cd.DDescribe}</textarea> <br/> <br/> <br/>  


  </div>
  <br/> <br/> <br/> <br/> 
  <input type="submit" class="del" value="提交" style="margin-top: -15px;
    margin-left: 300px;"/> &nbsp; &nbsp;&nbsp; &nbsp;
  <input type="button" class="add" value="重置" onClick="location.reload()"/>
  </form>
  </div>
  </body>
</html>
